package com.kedacom.ctsp.example.authz.controller;

import com.kedacom.ctsp.authz.Authorize;
import com.kedacom.ctsp.example.authz.entity.Shelf;
import com.kedacom.ctsp.example.authz.vo.ShelfVO;
import com.kedacom.ctsp.web.controller.AbstractCrudController;
import com.kedacom.ctsp.web.entity.param.QueryParamEntity;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author xuwei
 * @date 2017/9/7
 */
@RestController
@RequestMapping("/shelf")
@Api(tags = "simple_shelf", description = "提供货架的增删改查")
@Authorize(roles = "ADMIN")
public class ShelfController extends AbstractCrudController<Shelf, Long, QueryParamEntity, ShelfVO> {


    @GetMapping("/authz")
    public String testAuthz() {
        return "success";
    }
}
